<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="box">hello</div>
    <ul>
      <li>1</li>
      <li id="li2">2</li>
      <li>3</li>
    </ul>
    <input type="checkbox" checked /> css <input type="checkbox" /> html
    <input type="checkbox" checked /> js

    <input type="text" name="" id="" />
    <script>
      // 通过css选择器批量获取标签对象
      console.log(document.querySelectorAll("#box"));
      console.log(document.querySelectorAll("ul li"));
      console.log(document.querySelectorAll('input[type="checkbox"]:checked'));
    </script>
  </body>
</html>
